<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>邦政的幸福生活</title>
</head>
<style>
    button {
        background-color: aquamarine;
        color: pink;
        font-size: xx-large;
    }
</style>

<body>
    <button>
        <a href="https://www.baidu.com">百度一下邦政的幸福生活</a>
    </button>
    <script>
        document.querySelector("button").onclick = function () {
            alert("点击了按钮")
        }
    </script>
</body>

</html>